import request from '@/utils/request'

// 查询关联方特批列表
export function listDealAffiliatedParty(query) {
  return request({
    url: '/party/dealAffiliatedParty/list',
    method: 'get',
    params: query
  })
}

// 查询关联方特批详细
export function getDealAffiliatedParty(id) {
  return request({
    url: '/party/dealAffiliatedParty/' + id,
    method: 'get'
  })
}

// 保存关联方特批
export function saveDealAffiliatedParty(data) {
  return request({
    url: '/party/dealAffiliatedParty/save',
    method: 'post',
    data: data
  })
}

// 删除关联方特批
export function delDealAffiliatedParty(id) {
  return request({
    url: '/party/dealAffiliatedParty/' + id,
    method: 'delete'
  })
}

// 导出关联方特批
export function exportDealAffiliatedParty(query) {
  return request({
    url: '/party/dealAffiliatedParty/export',
    method: 'get',
    params: query
  })
}
